//
//  ChatDB.h
//  iHeima
//
//  Created by he chao on 6/9/14.
//  Copyright (c) 2014 leon. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface ChatDB : BeeModel{
    sqlite3 *db;
    NSArray *arrayKey;
}
AS_SINGLETON(ChatDB)

- (void)execSql:(NSString *)sql;
- (void)insert:(NSMutableDictionary *)dictMessage;
- (void)delete:(NSMutableDictionary *)dictMessage;
- (NSMutableArray *)queryFriendMessage:(NSString *)strSenderId;
- (NSMutableArray *)queryTeamMessage:(NSString *)strTeamId;

- (void)deleteTeamMessage:(NSMutableDictionary *)dictMessage;
- (void)deleteFriendMessage:(NSMutableDictionary *)dictMessage;

@end
